<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?=$this->baseUrl?>/public/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="<?=$this->baseUrl?>/public/css/icons.css"> 
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ext-base.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ext-all.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/Portal.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/PortalColumn.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/Portlet.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/sample-grid.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/examples.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ben/showresult.js"></script>
<link rel="stylesheet" type="text/css" href="<?=$this->baseUrl?>/public/css/portal.css" />
<link rel="stylesheet" type="text/css" href="<?=$this->baseUrl?>/public/css/sample.css" />
<title>无标题文档</title>
</head>
<script type='text/javascript'>
Ext.BLANK_IMAGE_URL = '<?=$this->baseUrl?>/public/images/default/s.gif';
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());	
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';	
var cp = new Ext.state.CookieProvider();
Ext.state.Manager.setProvider(cp);
var cssname = cp.get("style");	
Ext.util.CSS.swapStyleSheet("theme","<?=$this->baseUrl?>/public/css/"+cssname);
Ext.onReady(function(){
    var tools = [{
        id:'close',
        handler: function(e, target, panel){
            panel.ownerCt.remove(panel, true);
        }
    }];




var site_order_8001=new Plima.pgrid({
				url		: '<?=$this->baseUrl?>/site/orderdata/id/8001'
				});
var site_order_8002=new Plima.pgrid({
				url		: '<?=$this->baseUrl?>/site/orderdata/id/8002'
				});
var site_order_8003=new Plima.pgrid({
				url		: '<?=$this->baseUrl?>/site/orderdata/id/8003'
				});
var site_order_8004=new Plima.pgrid({
				url		: '<?=$this->baseUrl?>/site/orderdata/id/8004'
				});
var site_order_8005=new Plima.pgrid({
				url		: '<?=$this->baseUrl?>/site/orderdata/id/8005'
				});
var site_order_7001=new Plima.pgrid({
				url		: '<?=$this->baseUrl?>/site/orderdata/id/7001'
				});

var win = new Ext.Window({        
		layout:'fit',
		labelAlign:'top',
		renderTo:'welcome',
		border:false,
		x:0,
		y:0,
		resizable:true,   
		autoScroll:true,
		maximizable:true,
		closable:false,
		margins:'10 0 0 0',
        items:[{
            xtype:'portal',
            region:'center',
			layout:'column',			
            margins:'0 5 5 0',
            items:[{
                columnWidth:.31,
                style:'padding:10px 0 10px 10px',
                items:[
				<?php if($this->acl->isAllowed($this->role,'order','8001')) {?>
					   {
                    title: '8001:www.luxcellphone.com',
                    layout:'fit',					
                    tools: tools,
                    items: site_order_8001
                },
				<?php }?>
				<?php if($this->acl->isAllowed($this->role,'order','8004')) {?>
				{
                    title: '8004:www.luxphoneworld.com',
                    tools: tools,
                    items:	site_order_8004
                }
				<?php }?>
				]
            },	
			{
                columnWidth:.31,
                style:'padding:10px 0 10px 10px',
                items:[
			<?php if($this->acl->isAllowed($this->role,'order','8002')) {?>		   
					  {
                    title: '8002:www.myluxphone.com',
                    tools: tools,
					items: site_order_8002   
                },
			<?php }?>
			<?php if($this->acl->isAllowed($this->role,'order','8005')) {?>
				{
                    title: '8005:www.handbagseshop.com',
                    tools: tools,
                    items: site_order_8005
                }
			<?php }?>
				]
            },{
                columnWidth:.31,
                style:'padding:10px',
                items:[
			<?php if($this->acl->isAllowed($this->role,'order','8003')) {?>   
					{
                    title: '8003:www.myreplicaphone.com',
                    tools: tools,
                    items: site_order_8003
                },
			<?php }?>
			<?php if($this->acl->isAllowed($this->role,'order','8005')) {?>
				{
                    title: '7001:www.luxphoneonline.com',
                    tools: tools,
                    items: site_order_7001
                }
			<?php }?>
				]
            }]
            
        }]
    });
	win.show();
	win.maximize(); 
	//alert(Ext.get('welcome').);
});
</script>
<body>
<div id='welcome' style='height:100%;width:100%'></div>
</body>
</html>